Skip to content

fix(cable): follow tunnel redirects and forget gone links#274

Merged
AlfioEmanueleFresta merged 2 commits into
masterfrom
fix/cable-tunnel-redirects-and-410
Jun 17, 2026
Merged

fix(cable): follow tunnel redirects and forget gone links#274
AlfioEmanueleFresta merged 2 commits into
masterfrom
fix/cable-tunnel-redirects-and-410

Conversation

@AlfioEmanueleFresta

Copy link
Copy Markdown
Member

The hybrid tunnel did not follow HTTP redirects, so a redirecting tunnel server could not be reached, and a permanently gone link kept being retried. This follows redirects with the required headers reattached, and treats a gone response as permanent by forgetting the stored link.

Part of #257.

connect() now follows HTTP 3xx redirects to the Location target with a
redirect cap, re-attaching the fido.cable and client-payload headers on
each hop. A 410 Gone surfaces as a distinct error, and a known-device
contact connection forgets the linking record on 410 so it is not
retried forever.
@AlfioEmanueleFresta AlfioEmanueleFresta marked this pull request as ready for review June 16, 2026 18:34
@AlfioEmanueleFresta AlfioEmanueleFresta merged commit c9d6b77 into master Jun 17, 2026
6 checks passed
@AlfioEmanueleFresta AlfioEmanueleFresta deleted the fix/cable-tunnel-redirects-and-410 branch June 17, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants